package fy.mdm.bean;

import org.json.JSONException;
import org.json.JSONObject;

public class MaterialCodeBean {
	private String materialCode;// 产品编码
	private String materialName;// 产品名称
	private String  first_category;//类别
	
	private String measurement; // 物料新单位
	private String materiel_describe; //物料新描述
	private String materiel_describe_en;  //物料新描述（英文）
	
	private String materialtype;  //物料品牌型号
//	private String message;//查询结果
	
	public String getMaterialCode() {
		return materialCode;
	}

	public void setMaterialCode(String materialCode) {
		this.materialCode = materialCode;
	}

	public String getMaterialName() {
		return materialName;
	}

	public void setMaterialName(String materialName) {
		this.materialName = materialName;
	}

	public String getID() {
		return new StringBuilder().append("materialCode").append(materialCode).toString();
	}
	public String getFirst_category() {
		return first_category;
	}

	public void setFirst_category(String first_category) {
		this.first_category = first_category;
	}
	
	public String getMaterialtype() {
		return materialtype;
	}

	public void setMaterialtype(String materialtype) {
		this.materialtype = materialtype;
	}

	public JSONObject getJSONObject() throws JSONException {
		JSONObject jo = new JSONObject();
		jo.put("materialCode", materialCode);
		jo.put("materialName", materialName);
		jo.put("first_category",  first_category);
		jo.put("materiel_describe", materiel_describe);
		jo.put("measurement", measurement);
		jo.put("materiel_describe_en", materiel_describe_en);
		jo.put("materialtype", materialtype);
//		jo.put("MDM_MESSAGE", message);
//		jo.put("", );
//		jo.put("", );
		
		return jo;
	}

	public String getMeasurement() {
		return measurement;
	}

	public void setMeasurement(String measurement) {
		this.measurement = measurement;
	}

	public String getMateriel_describe() {
		return materiel_describe;
	}

	public void setMateriel_describe(String materiel_describe) {
		this.materiel_describe = materiel_describe;
	}

	public String getMateriel_describe_en() {
		return materiel_describe_en;
	}

	public void setMateriel_describe_en(String materiel_describe_en) {
		this.materiel_describe_en = materiel_describe_en;
	}

//	public String getMessage() {
//		return message;
//	}
//
//	public void setMessage(String message) {
//		this.message = message;
//	}

	

}
